import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import ElementPlus from 'element-plus'
import './assets/css/icon.css'

import ECharts from 'vue-echarts'
import { use } from "echarts/core";

import XLSX from 'xlsx'
// 手动引入 ECharts 各模块来减小打包体积
import {
    CanvasRenderer
} from 'echarts/renderers'
import {
    PieChart,
} from 'echarts/charts'
import {
    GridComponent,
    LegendComponent,
    TitleComponent,
    VisualMapComponent,
    TooltipComponent
} from 'echarts/components'

use([
    CanvasRenderer,
    PieChart,
    LegendComponent,
    TitleComponent,
    GridComponent,
    TooltipComponent,
    VisualMapComponent,
]);

const app = createApp(App)

app.config.devtools = true
app.component('v-chart', ECharts)
app.use(ElementPlus).use(router).use(store).use(XLSX).mount('#app')
